<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( ! function_exists('getNumMessage')) {
	function getNumMessage($projectId)
	{
		$CI 	=& get_instance();
		$CI->load->model('skills_model');

		$condition = array('project_message.project_id' => $projectId);
		$result = $CI->skills_model->getMessage($condition);
				
		$row = $result->num_rows();
		return $row;
	}
}

?>